package com.rd.p2p.statics.util;

import java.text.SimpleDateFormat;
import java.util.Date;


public class DateUtil {
	private static final SimpleDateFormat format3 = new SimpleDateFormat("yyyyMMddHHmmss");
	public synchronized static String dateStr3(Date date) {
		String str = format3.format(date);
		return str;
	}
	public static String dateStr2(Date date) {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		String str = format.format(date);
		return str;
	}
	
}
